package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.TrafficKeywordsBean;
import com.atguigu.edu.publisher.mapper.KeywordRateMapper;
import com.atguigu.edu.publisher.service.KeywordRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class keywordRateServiceImpl implements KeywordRateService {
    //注入mapper
    @Autowired
    KeywordRateMapper keywordRateMapper;

    @Override
    public List<TrafficKeywordsBean> getKeyWords(Integer date) {
        List<TrafficKeywordsBean> keywordsBeans = keywordRateMapper.selectKeyWords(date);
        return keywordsBeans;
    }
}
